Fixed GtkCellLayout to pack cells via the api when parsing builder input.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Wed, 24 Nov 2010 09:28:31 +0000 (18:28 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 29 Nov 2010 04:03:54 +0000 (13:03 +0900)
gtk/gtkcelllayout.c

index f25864bad6c26ed08c56afb0eb18f62f1553ae2b..fb35428fe34dc3ffc6baec637265538776d31c2c 100644 (file)
@@ -706,12 +706,8 @@ _gtk_cell_layout_buildable_add_child (GtkBuildable      *buildable,
                                      GObject           *child,
                                      const gchar       *type)
 {
-  GtkCellLayoutIface *iface;
-  
   g_return_if_fail (GTK_IS_CELL_LAYOUT (buildable));
   g_return_if_fail (GTK_IS_CELL_RENDERER (child));
 
-  iface = GTK_CELL_LAYOUT_GET_IFACE (buildable);
-  g_return_if_fail (iface->pack_start != NULL);
-  iface->pack_start (GTK_CELL_LAYOUT (buildable), GTK_CELL_RENDERER (child), FALSE);
+  gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (buildable), GTK_CELL_RENDERER (child), FALSE);
 }